﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>创建节点示例</title>
    <script>
        function createMessge() {
            let op = document.createElement("p");
            let otext = document.createTextNode("hellojs");
            op.appendChild(otext);
            document.body.appendChild(op);
        }
    </script>
</head>
<body onload="createMessage()">

</body>
</html>